package com.wtb.javatool.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wtb.javatool.entity.Assets;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AssetsService extends IService<Assets> {

    // 根据目录ID查询所有资源
    List<Assets> getAssetsByBandId(Long bandId);

    // 根据ID查询Assets
    Assets getById(Long id);

    // 根据文档ID查询Assets
    List<Assets> getByDocumentId(Long documentId);

    // 插入Assets
    Long insert(Assets assets);

    // 更新Assets
    int update(Assets assets);

    // 根据Id删除Assets
    int delete(Long id);

    // 批量根据Id删除Assets
    int deleteMany(List<Long> ids);

    // 根据文档Id删除Assets
    int deleteByDocumentId(Long documentId);

    // 根据目录Id删除Assets
    int deleteByCatalogId(Long catalogId);

    // 批量根据目录Id删除Assets
    int deleteManyByCatalogId(List<Long> catalogIds);
}